<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl> $NCharset </tpl>" />
<link href="<tpl> $template_dir </tpl>/home/css/base_4_2_2.css" rel="stylesheet" type="text/css" />
<tpl>
 include file ='../head.config.html' </tpl>
</head>
<body>
<tpl> include file ='../top.html' </tpl>
<div class="nav nav2">
	<div class="free-pub">
		<a href="index.php?action=add" target="_blank"><tpl> $langSupplyAdd </tpl></a>
	</div>
	<div class="nav-info">	
		<a href="<tpl> $site_url </tpl>"><tpl> $langCIndex </tpl></a>
		<a href="index.php?action=list"><tpl> $langSupplyAllClass </tpl></a><tpl> $cate_string </tpl>
		<span class="title"><tpl> $supply_array.s_title </tpl></span>
	</div>				
</div>		
<div class="yui-d2f">
	<div class="yui-cn-t3">
		<div class="yui-main">
			<div class="yui-b">
				<div class="block-title">
					<h1> 
					<tpl> if $supply_array.s_recommend eq 1 </tpl>
						<b style=" color:#FF0000; font-weight:bold;">[<tpl> $langSupplyTypeJian </tpl>]</b>
					<tpl> /if </tpl>
					<tpl> $supply_array.s_title </tpl></h1>
					<p class="yk-lowlight offer-system-info">
						<span><tpl> $langSupplyAddTime </tpl><strong style="font-weight:bold; padding-left:4px; padding-right:4px;">:</strong> <tpl> $supply_array.s_time </tpl></span>
						<span>
							<tpl> if $supply_array.remain_time > 0 </tpl>
								<tpl> $langSupplyRemainDay </tpl><strong style="font-weight:bold; padding-left:4px; padding-right:4px;">:</strong> <tpl> $supply_array.remain_time </tpl><tpl> $langSupplyTian </tpl>
							<tpl> /if </tpl>
							<tpl> if $supply_array.remain_time eq 0 </tpl>
								<tpl> $langSupplyExpired </tpl>
							<tpl> /if </tpl>
							<tpl> if $supply_array.remain_time eq '-1' </tpl>
								<tpl> $langSupplyRemainDay </tpl><strong style="font-weight:bold; padding-left:4px; padding-right:4px;">:</strong><tpl> $langSupplyValdateNone </tpl>
							<tpl> /if </tpl>
						</span>
						<span><tpl> $langSupplyViewNum </tpl><strong style="font-weight:bold; padding-left:4px; padding-right:4px;">:</strong><strong  style="font-weight:500;  color:#fc420c; padding-right:15px;"><tpl> $supply_array.s_click </tpl></strong><tpl> $langSupplyCi </tpl></span>
					</p>
				</div>
				<div class="main-top-ctn">
					<div class="block-basic-info yk-fix-float">
						<div class="offer-pic single-pic"><div>
							<div id="change_pic">
							<tpl> if $supply_array.spic_arr[0] neq '' </tpl>
								<a href="<tpl> $site_url </tpl>/<tpl> $supply_array.spic_arr[0] </tpl>" target="_blank"><img src="<tpl> $site_url </tpl>/<tpl> $supply_array.spic_arr[0] </tpl>"></a>
							<tpl> else </tpl>
								<img src="<tpl> $template_dir </tpl>/home/images/moren.gif">
							<tpl> /if </tpl>
							</div>
						</div>
						<div class="img-3">
							<ul>
								<tpl> foreach item=one from=$supply_array.spic_arr </tpl>
									<li class="img-3-1" onclick="$('#change_pic').html('<a href=\'<tpl> $site_url </tpl>/<tpl> $one </tpl>\' target=\'_blank\'>'+$(this).html()+'</a>');"><img src="<tpl> $site_url </tpl>/<tpl> $one </tpl>"></li>
								 <tpl> /foreach </tpl>
							</ul>
						</div>
					</div>
					<div class="offer-basic-info">
						<dl class="yk-fix-float">
							<dt><tpl> $langSupplyPrice </tpl><strong style="font-weight:bold; padding-left:4px; padding-right:5px;">:</strong></dt>
							<dd class="first5">
								<tpl> if $supply_array.s_price eq 0 || $supply_array.s_price_face eq '1' </tpl>
									<tpl> $langSupplyPriceToFace </tpl>
								<tpl> else </tpl>
									<tpl> $supply_array.s_price </tpl>
								<tpl> /if </tpl>
							</dd>
						</dl> 
						<dl class="yk-fix-float">
							<dt><tpl> $langSupplyQuality </tpl><strong style="font-weight:bold; padding-left:4px; padding-right:5px;">:</strong></dt>
							<dd class="first5"><tpl> $supply_array.s_quality </tpl></dd>
						</dl> 
					</div>
				</div>
				<div class="contact-card-ctn">
					<div class="contact-card yk-fix-float">
						<div class="contact-logo"></div>
						<dl class="yk-fix-float">
							<dt><tpl> $langSupplyContact </tpl><strong style="font-weight:bold; padding-left:4px; padding-right:5px;">:</strong></dt>
							<dd style=" padding-top:1px;">
								<tpl> if $supply_array.s_anonymous eq 1 </tpl>
									<a target="_blank" href="<tpl> $site_url </tpl>/store/index.php?userid=<tpl> $supply_array.s_member_id </tpl>" ><tpl> $supply_array.s_member_name </tpl></a>
								<tpl> else </tpl>
									<tpl> $langSupplyAntmuse </tpl>
								<tpl> /if </tpl>
							</dd>
							<dt class="phone"></dt>
							<dd class="green">
								<b style=" font-weight:bold;"><tpl> $supply_array.s_phone </tpl></b>
							</dd>
						</dl>
						<dl style="display:none" id="cc-expand">
							<dt>email：</dt>	
							<dd><b  style=" font-weight:bold; vertical-align:3px;"><tpl> $supply_array.s_email </tpl></b></dd>
						</dl>
						<dl class="yk-fix-float foot">
							<dt></dt>
							<dd><a class="view-contact" onclick="$('#cc-expand').slideToggle()" style="outline-color: -moz-use-text-color; outline-style: none; outline-width: medium;" href="javascript:;"><tpl> $langSupplyOtherContact </tpl></a>
							</dd>
						</dl>
					</div>
				</div>
			</div>
			<div class="offer-detail-info">
				<div class="decoration-detail"><tpl> $langSupplyContent </tpl></div>
					<ul class="yk-fix-float">
						<li class="other-instruct">
							<span></span>
							<div class="yk-editor-display"><tpl> $supply_array.s_content </tpl></div>
						</li>
					</ul>
				</div>
				<div id="messageBoard">
					<tpl> if $supply_array.s_renum > 0 </tpl>
					<div class="yk-mod-rounded-corner mb-panel">
    					<span class="yk-x1"><span class="yk-x1a"></span></span>
    					<div class="yk-mod-content">
     						<div class="yk-fix-float messageFormHD"><span style="font-weight:bold; width:200px; display:block;"><tpl> $langSupplyAllMsg </tpl>(<tpl> $re_number </tpl>)</span><span class="mb-hd yk-fix-float"><a href="#Replay"><tpl> $langSupplyIWantRe </tpl></a></span></div>
						<tpl> section name=i loop=$supply_re_array </tpl>
							<div class="yk-mod-rounded-corner messageContain">
			        			<span class="yk-x1"><span class="yk-x1a"></span></span>
			        			<div class="yk-mod-content yk-fix-float">
			          				<div class="member">
										<img src="<tpl> $template_dir </tpl>/home/images/nophoto.gif" width="50" height="50">
									</div>
			          				<p class="messageHead messageItem">
			          					<span class="memberName">
											<tpl> if $supply_re_array[i].sr_anonymous eq 1 </tpl>
												<a target="_blank" href="<tpl> $site_url </tpl>/store/index.php?userid=<tpl> $supply_re_array[i].sr_member </tpl>" ><tpl>  $supply_re_array[i].sr_member_name </tpl>
											</a>
											<tpl> else </tpl>
												<tpl> $langSupplyAnonymous </tpl>
											<tpl> /if </tpl>
										</span>
			          					<span class="yk-lowlight"><tpl> $supply_re_array[i].sr_time </tpl></span>
			          				</p>
			          				<div class="messageBody messageItem"><tpl> $supply_re_array[i].sr_content </tpl></div>
								</div>
			        			<span class="yk-x2"><span class="yk-x2a"></span></span>
							</div>
						<tpl> /section </tpl>
							<div id="mb-page-break" class="yk-fix-float">
      							<div id="page-num">
									<div class="pagehead">
										<tpl> $page_list </tpl>
									</div>
      							</div>
      						</div>
						</div>
    					<span class="yk-x2"><span class="yk-x2a"></span></span>
  					</div>
					<tpl> /if </tpl> 
					<div class="yk-mod-rounded-corner mb-panel">
    					<span class="yk-x1"><span class="yk-x1a"></span></span>
    					<div class="yk-mod-content">
      						<div id="messageFormContain">
								<a name="Replay"></a>
      							<form action="index.php?action=save_re" method="post" id="supplyreplay" name="supplyreplay">
									<input type="hidden" name="sid" id="sid" value="<tpl> $supply_array.s_id </tpl>" />
									<input type="hidden" name="retitle" id="retitle" value="<tpl> $langSupplyRe </tpl>:<tpl> $supply_array.s_title </tpl>" />
        							<div class="yk-fix-float messageFormHD"><p><input id="setMsg" name="setMsg" value="1" type="checkbox"><label id="labelInner" for="setMsg"><tpl> $langSupplySetMsg </tpl></label></p><tpl> $langSupplyIWantRe </tpl>
									</div>
        							<div>
 
          								<div style=" margin-top:8px;"><textarea name="ReContent" id="ReContent" style="width:500px; height:80px"></textarea></div>
        							</div>
        							<p id="msgWordNum-hint" class="errorHint messageFormFT" style="display: none;"></p>
        							<p class="messageFormFT" style=" margin-top:8px;">	
										<span style="float:right"><tpl> if $is_member eq 1 </tpl> 
											<input style=" vertical-align:-2px; *vertical-align:-2px;"  type="checkbox" id="anonymous" name="anonymous" value="2" <tpl> if $supplyAnonymous==2 </tpl> checked="checked" <tpl> /if </tpl>/> <tpl> $langSupplyAnonymous </tpl>
										<tpl> else </tpl>
										   <tpl> $langSupplyAnonymousNoLogin </tpl>
											<input type="hidden" id="anonymous" name="anonymous" value="2" />
										<tpl> /if </tpl></span><label><tpl> $langSupplyCode </tpl><strong style="font-weight:bold; padding-left:4px; padding-right:5px;">:</strong></label> <input style=" width:80px;" name="code" id="code" type="text"><img style=" vertical-align:middle; *vertical-align:-3px; margin-left:5px;" src="<tpl> $site_url </tpl>/classes/libraries/code.php" onclick="this.src='<tpl> $site_url </tpl>/classes/libraries/code.php?' + Math.random()" title=" <tpl> $langSupplyCodeChange </tpl> " id="codeimage" name="codeimage" style=" vertical-align:middle" /> <b style=" vertical-align:0px; *vertical-align:3px; color:#ff6600;"><tpl> $langSupplyCodeChange </tpl></b>
									
									</p>
        						
        							<p id="userInfo-hint" class="errorHint messageFormFT" style="display: none;"></p>
        							<input id="reubmit" value="<tpl> $langSupplySubmit </tpl>" type="submit">
      							</form>
      							</div>
    						</div>
    						<span class="yk-x2"><span class="yk-x2a"></span></span>
  						</div>
					</div>
				</div>
			</div>
			<div class="yui-b">
				<div class="profile-card comp-other-info">
					<div class="coi-m">
						<div class="coi-b">
							<h3 class="title"><span class="yk-lowlight"><tpl> $langSupplyBaseInfo </tpl></span></h3>
						<div class="profile-hd">
							<div class="ph-m">
								<div class="ph-b yk-fix-float">
									<span class="avatar" href=""> <img src="<tpl> $template_dir </tpl>/home/images/nophoto.gif" title="" alt="" width="50" height="50"></span>
									<p>
									  <span><tpl> $langSupplyMember </tpl><strong style="font-weight:bold; padding-left:4px; padding-right:4px;">:</strong> </span>
										<tpl> if $supply_array.s_anonymous eq 1 </tpl>
											<a target="_blank" href="<tpl> $site_url </tpl>/store/index.php?userid=<tpl> $supply_array.s_member_id </tpl>" ><tpl> $supply_array.s_member_name </tpl></a>
										<tpl> else </tpl>
											<font style="color:#2754bb;"><tpl> $langSupplyAntmuse </tpl></font>
										<tpl> /if </tpl>
								  </p>
							
									<p>
										<tpl> if $supply_array.s_anonymous eq 1 </tpl>
										<span><a href="<tpl>$site_url</tpl>/member/own_message.php?action=add&username=<tpl>$supply_member</tpl>" target="_blank"><img src="<tpl>$site_url</tpl>/templates/home/images/zhannei.gif" alt="<tpl> $langSIntroSendCorrespondence </tpl>"/></a></span>
										<tpl> /if </tpl>
										<tpl> if $supply_array.s_wangwang neq '' </tpl>	
										<span><a target="_blank" href="http://amos1.taobao.com/msg.ww?v=1&uid=<tpl> $supply_array.s_wangwang </tpl>&site=cntaobao&s=2" ><img border="0" src="http://amos1.taobao.com/online.ww?v=1&uid=<tpl> $supply_array.s_wangwang </tpl>&site=cntaobao&s=2" alt="<tpl> $langPOnClickMyMessage </tpl>" /></a></span>
										<tpl> /if </tpl>
										<tpl> if $supply_array.s_qq neq '' </tpl>	  
										<span><a href=tencent://message/?uin=<tpl> $supply_array.s_qq </tpl>&Site=<tpl> $site_url </tpl>&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:<tpl> $supply_array.s_qq </tpl>:4 alt="<tpl> $langPOnClickMyMessage </tpl>"></a></span>
										<tpl> /if </tpl>
										<tpl> if $supply_array.s_msn neq '' </tpl>
										<span><A href="msnim:chat?contact=<tpl> $supply_array.s_msn </tpl>"><IMG src="http://img8.cn.msn.com/images/msfp_008.gif" width="19" height="19" border="0"></A></span>
										<tpl> /if </tpl>
										<tpl> if $supply_array.s_skype neq '' </tpl>
										<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
										<span><a href="skype:<tpl> $supply_array.s_skype </tpl>?call"><img src="http://download.skype.com/share/skypebuttons/buttons/call_blue_transparent_34x34.png" style="border: none;" width="20" height="20" alt="Skype Me™!" /></a></span>
										<tpl> /if </tpl>
									</p>
								</div>
							</div>
							<div class="profile-bd"></div>
						</div>
					</div>
				</div>	
			</div>
			<tpl> if $supply_array.s_anonymous eq 1 </tpl>
			<div class="comp-other-info">
				<div class="coi-m">
					<div class="coi-b">
						<h3 class="title">
							<span class="yk-lowlight">
								<a href="<tpl> $site_url </tpl>/store/index.php?userid=<tpl> $supply_array.s_member_id </tpl>" target="_blank"><tpl> $supply_array.s_member_name </tpl></a><tpl> $langSupplyRelatedInformation </tpl>
							</span>
						</h3>
						<ul>
							<tpl> section name=loop loop=$relate_supply </tpl>
							<li class="first yk-fix-float">
								<p>
									<a href="index.php?action=view&sid=<tpl> $relate_supply[loop].s_id </tpl>" target="_blank">
										<tpl> $relate_supply[loop].s_title </tpl>
									</a>
								</p>
								<p class="summary">
									<tpl> $relate_supply[loop].short_content </tpl>
								</p>
								<div class="yk-list-dot"></div>
							</li>
							<tpl> /section </tpl>
						</ul>
						<p class="more">
							<a href="index.php?member_id=<tpl> $supply_array.s_member_id </tpl>" target="_blank"><tpl> $langSupplyMoreInformation </tpl></a>
						</p>
					</div>
				</div>
			</div>
			<tpl> /if </tpl>
		</div>
	</div>
</div>

<div class="clear"></div>
<tpl> include file ='../../../../html/footer.html' </tpl>
</body>
</html>

<script language="javascript">
$(function(){
	$("#supplyreplay").validate({
		errorClass: "wrong",
		rules: {
			retitle: {required:true,minlength:2,maxlength:50},
			ReContent: {required:true,minlength:2,maxlength:10000}
		},
		messages: {
			retitle: {required: "<tpl> $errSupplyReTitleIsEmtpy </tpl>",minlength: "<tpl> $errSupplyReTitleIsTooShort </tpl>",maxlength: "<tpl> $errSupplyReTitleIsTooLong </tpl>"},
			ReContent: {required: "<tpl> $errSupplyContentIsEmtpy </tpl>",minlength: "<tpl> $errSupplyContentIsTooShort </tpl>",maxlength: "<tpl> $errSupplyContentIsTooLong </tpl>"}
		},
		/*AJ判断验证码*/
		submitHandler: function() {
			document.getElementById('reubmit').disabled;
			$.get("index.php",{action:"check_code",checkcode:$('#code').val(),random_number:Math.random()},function(data){
			if(data == '1'){
				document.getElementById('supplyreplay').submit();
			}else{
				alert('<tpl> $errSupplyCodeIsWrong </tpl>');
				document.getElementById('reubmit').disabled = false;
				return false;
			}})
			return false;
		}
	});
})
</script>